package hw_7_24;

import java.util.Random;

public class Random_Demo1 {
    public static void main(String[] args) {
        Random r = new Random();
        for (int i = 1; i <= 20 ; i++) {
            int randomNum = r.nextInt(10) + 1;
            System.out.println("第" + i + "个随机数是：" + randomNum);
        }
    }
}
